package com.linx.parking_lot.domain.parking_lot_info;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.linx.parking_lot.domain.parking_lot_info.ParkingLotInfo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.linx.common.excel.annotation.ExcelDictFormat;
import com.linx.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 停车场-信息视图对象 parking_lot_info
 *
 * @author linx
 * @date 2025-02-17
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = ParkingLotInfo.class)
public class ParkingLotInfoVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long parkingLotId;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 停车场名称
     */
    @ExcelProperty(value = "停车场名称")
    private String parkingLotName;

    /**
     * 联系人
     */
    @ExcelProperty(value = "联系人")
    private String contactPerson;

    /**
     * 联系人电话
     */
    @ExcelProperty(value = "联系人电话")
    private String contactPersonPhone;

    /**
     * 地址
     */
    @ExcelProperty(value = "地址")
    private String address;

    /**
     * 详细地址
     */
    @ExcelProperty(value = "详细地址")
    private String addressDetail;

    /**
     * 车位数
     */
    @ExcelProperty(value = "车位数")
    private Long parkingSpaceNum;

    /**
     * 经度
     */
    @ExcelProperty(value = "经度")
    private String latitude;

    /**
     * 纬度
     */
    @ExcelProperty(value = "纬度")
    private String longitude;

    /**
     * 营业时间 开始
     */
    @ExcelProperty(value = "营业时间 开始")
    private Date businessHoursStart;

    /**
     * 营业时间结束
     */
    @ExcelProperty(value = "营业时间结束")
    private Date businessHoursEnd;

    /**
     * 是否手动开闸 1 是  0 否
     */
    @ExcelProperty(value = "是否手动开闸 1 是  0 否")
    private String openGate;

    /**
     * 上级停车场
     */
    @ExcelProperty(value = "上级停车场")
    private Long parentId;

    /**
     * 起步价（单位：元）
     */
    @ExcelProperty(value = "起步价", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "单=位：元")
    private Long startingPrice;

    /**
     * 起步价时长（单位：分钟）
     */
    @ExcelProperty(value = "起步价时长", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "单=位：分钟")
    private Long startingPriceDuration;

    /**
     * 每小时加收（单位：元）
     */
    @ExcelProperty(value = "每小时加收", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "单=位：元")
    private Long hourPrice;

    /**
     * 单日收费上限（单位：元）
     */
    @ExcelProperty(value = "单日收费上限", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "单=位：元")
    private Long dayUpperLimitPrice;


}
